package com.bingo.base;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * 消息的接受者
 */
@Slf4j
@Component
@RocketMQMessageListener(consumerGroup = "Base-SpringBoot-2", topic = "Base", selectorExpression = "springboot-sync")
public class BaseConsumer2 implements RocketMQListener<String> {

    @Override
    public void onMessage(String s) {
        log.info("consumerGroup-2,接收到的消息,{}", s);
    }
}
